package model

import "gorm.io/gorm"

type Release struct {
	gorm.Model
	UserId     int    `gorm:"type:int;no t ull;comment:'发布用户的ID'" json:"user_id"`
	Title      string `gorm:"type:varchar(30);not null;comment:'发布标题'" json:"title"`
	Content    string `gorm:"type:varchar(225) ;not null;comment:'发布内容'" json:"content"`
	LikeNum    int    `gorm:"type:int;not null;commentL'内容点赞量'" json:"like_num"`
	Types      int    `gorm:"type:int;not null;comment:'发布类型1.字符串,2.图片3.视频'" json:"types"`
	CommentNum int    `gorm:"type:int;not null;comment:'评论数量'" json:"comment_num"`
}
